<extend name="Public/Dialog/Common"/>
<block name="pageContent">
    <div class="bjui-pageContent">
        <form action="{:U('createAllFiles')}" data-toggle="validate" data-alertmsg="false">
            <ul class="nav nav-tabs" role="tablist">
                <li class="active"><a href="#BuilderBase" role="tab" data-toggle="tab">基础</a></li>
                <li><a href="#BuilderExtend" role="tab" data-toggle="tab">扩展</a></li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane fade active in" id="BuilderBase">
                    <table class="table table-condensed table-hover" width="100%">
                        <tbody>
                        <tr>
                            <td>
                                选择模块
                            </td>
                            <td>
                                <select class="form-control" name="moduleName">
                                    <volist name="moduleNameList" id="moduleName">
                                        <option value="{$moduleName}">{$moduleName}</option>
                                    </volist>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                控制器继承
                            </td>
                            <td>
                                <input type="text" name="extendsModuleName"
                                       placeholder="extendsModuleName"
                                       class="form-control">
                                <input type="text" name="extendsClassName"
                                       placeholder="extendsClassName"
                                       class="form-control">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                生成控制器curd代码 <input type="checkbox" name="isCURD">
                            </td>
                            <td>
                                生成模型文件 <input type="checkbox" name="isModel" checked>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                模板配置
                            </td>
                            <td>
                                自定义头部搜索
                                <label><input type="radio" name="pageHeader" value="common" checked>通用头部</label>
                                <label><input type="radio" name="pageHeader" value="null">空搜索</label>
                                <label><input type="radio" name="pageHeader" value="inherit">继承方式</label>
                                <label><input type="radio" name="pageHeader" value="dialog">弹窗方式</label>
                                <label><input type="radio" name="pageHeader" value="navtab">页面方式</label>
                                <br />
                                是否解析模板包含文件 <input type="checkbox" name="isTemplateInclude" >
                                <br />
                                是否禁用/启用按钮<input type="checkbox" name="isToggleStatus" checked>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                数据表:
                            </td>
                            <td>
                                <table>
                                    <tr>
                                        <volist name="tableNameList" id="table" key="key">
                                            <td>
                                                <label>
                                                    <input type="checkbox" name="selectTableName[]"
                                                           value="{$table}"/>{$table}
                                                </label>
                                                <?php if($key%3==0)echo "</tr>
                                                <tr>";?>
                                                    </td>
                                        </volist>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="tab-pane fade" id="BuilderExtend">
                </div>
            </div>
        </form>
    </div>
</block>
